Ext.define("SHApp.System.Maintenance.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/maintenance?format=json",
    winWidth: 315,
    winHeight: 180,
    layout: { type: "vbox", align: "stretch" },
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        me.items = [
        {
            xtype: "textfield",
            fieldLabel: "ID",
            name: "Id",
            hidden: true
        }, {
            fieldLabel: "<span style='color:red'>*</span>分类",
            xtype: "textfield",
            name: "Category",
            maxLength: 50,
            hidden: true,
            allowBlank: false,
            blankText: "分类不能为空！"
        }, {
            fieldLabel: "<span style='color:red'>*</span>名称",
            xtype: "textfield",
            name: "Name",
            maxLength: 50,
            allowBlank: false,
            blankText: "名称不能为空！"
        }, {
            fieldLabel: "<span style='color:red'>*</span>编号",
            xtype: "textfield",
            name: "Code",
            maxLength: 50
        }, {
            fieldLabel: "<span style='color:red'>*</span>序号",
            xtype: "textfield",
            name: "Order",
            maxLength: 50,
            hidden: true
        }
	];
    }
});